<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<h3 v-for="(item,index) in stus">{{item}}</h3>
			<hr />
			<h1 v-for="item in works" v-if="item.age > 30">{{item.name}}-{{item.age}}</h1>
		</div>
		<script type="text/javascript">
			new Vue({
				el: '#app',
				data: {
					stus: ['张三', '李四', '王五'],
					works: [{
						name: '赵六',
						age: 60
					}, {
						name: '王二',
						age: 20
					}]
				}
			})
		</script>
	</body>
</html>
